package com.hxzy.springbootrocketproducer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Value;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 * @author Fan
 * finished
 */
@TableName(value = "t_user")
@Data
public class User implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "id_card")
    private String idCard;

    @TableField(value = "balance")
    private Integer balance;

    @TableField(value = "state")
    private Integer state;

    @TableField(value = "vip_flag")
    private Integer vipFlag;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;
}
